package com.atguigu.spzx.manager;

import com.atguigu.spzx.manager.properties.MyMinioProperties;
import com.atguigu.spzx.manager.properties.UserAuthProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@ComponentScan(basePackages = "com.atguigu.spzx") // 扫描所有项目包中的注解
@SpringBootApplication
@EnableConfigurationProperties(value = {UserAuthProperties.class, MyMinioProperties.class})// 导入属性配置类
@MapperScan(basePackages = "com.atguigu.spzx.manager.mapper") // 管理mapper的代理对象
@EnableScheduling // 定时任务
@EnableAsync // 切面类
public class ManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class , args) ;
    }
}